
package com.treeman.navi.login;

import com.treeman.navi.WarnActivity;

public class Session
{

    static private Boolean sessionStatus = false;

    static private String access_token = "";
    static private String username = "";
    static private String password = "";
    static private Boolean check = false;
    static private Boolean checkl = false;

    // constant
    private static String address = "http://62.21.77.233:8080";


    // http://192.168.1.100:8080
    // http://62.21.77.233:8080
    
    

    public static String getUsername()
    {
	return username;
    }

    public static Boolean getCheckl() {
		return checkl;
	}

	public static void setCheckl(Boolean checkl) {
		Session.checkl = checkl;
	}

	public static Boolean getCheck() {
		return check;
	}

	public static void setCheck(Boolean check) {
		Session.check = check;
	}

	public static void setUsername(String username)
    {
	Session.username = username;
    }

    public static String getPassword()
    {
	return password;
    }

    public static void setPassword(String password)
    {
	Session.password = password;
    }

    public static String getAccess_token()
    {
	return access_token;
    }

    public static void setAccess_token(String access_token)
    {
	Session.access_token = access_token;
	if (access_token.length() > 0) setSessionStatus(true);
    }

    public static String getAddress()
    {
	return address;
    }

    public static void setAdress(String adress)
    {
	Session.address = adress;
    }

    public static Boolean getSessionStatus()
    {
	return sessionStatus;
    }

    public static void setSessionStatus(Boolean sessionStatus)
    {
	Session.sessionStatus = sessionStatus;
	if (!sessionStatus) access_token = "";
    }

}
